                      <div id="edit_client" class="edit_client zoom-anim-dialog view-booking-popup">

                        <div class="">
                        <h1>تعديل سند قبض</h1>
                        <hr />
                        <form name="editRecpit" method="POST" action="editReciept.php">
                          <div class="bookings-edit-container">
                          <div class="bookings-edit-row">
                          <table class="edit-bookings-table">
                                
                                <tr>
                                      <td>التاريخ</td>
                                      <td>:&nbsp;<input readonly required type="text" class="small-input date_miladi" name="date"  id="dat-miladi-<?php echo $recipt['recipet_id'];?>" placeholder="" value=" <?php   echo  $recipt['miladi_date'];?> "/></td>
                                      <td>رقم السند</td>
                                      <td>:&nbsp;<?php echo $recipt['recipet_id'];?></td>
                                      <input type="hidden" required class="small-input" name="recipet_id"  value="<?php echo $recipt['recipet_id'];?>" />
                                      <input type="hidden" required class="small-input" name="contract_id"  value="<?php echo $recipt['contract_id'];?>" />
                                  </tr>
                                  <tr>
                                      <td>الموافق</td>
                                      <td >:<span class="date_hijri">&nbsp;<?php echo $recipt['Hijri_date']; ?></span></td>
                                      <input type="hidden" required class="small-input" name="hijri-date" id="date_hijri" placeholder="" value="<?php echo $recipt['Hijri_date']; ?>" />
                                      <td></td>
                                      <td></td>
                                  </tr>
                                  <tr>
                                    <td>النوع</td>
                                      <td>:&nbsp;
                                        <select name="payment_type"  class="payment_type" >
                                        <?php
                                          if($recipt['payment_type'] == 0)
                                            echo '<option selected="selected" value="0">سند قبض</option>';
                                          else
                                            echo '<option value="0">سند قبض</option>';
                                            
                                          if($recipt['payment_type'] == 1)
                                            echo '<option selected="selected" value="1">تأمين</option>';
                                          else
                                            echo '<option value="1">تأمين</option>';
                                        ?>
                                          
                                        </select>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td>المستلم</td>
                                      <td>:&nbsp;<input type="text" required class="small-input" name="recipient" id="" placeholder="" value=" <?php echo $recipt['recipient']; ?>" /></td>
                                  </tr>
                                  <tr>
                                    <td>استلمت من</td>
                                      <td><?php echo $recipt['payee']; ?>
                                        <input type="text" required class="small-input" name="payee" id="" placeholder="" value=" <?php echo $recipt['payee']; ?>" />
                                      </td>
                                  </tr>
                                  <tr>
                                    <td>المبلغ </td>
                                      <td>:&nbsp;<input type="text" class="auto-input" name="amount"  value="<?php echo $recipt['amount']; ?>"/></td>
                                      <td>طريقة الدفع</td>
                                      <td>:&nbsp;
                                      <select class="small-select" name="type">
                                      <?php 
                                        $i = 0;
                                        foreach($payment_method as $method)
                                        {
                                          if($recipt['paymen_method'] == $i)
                                          {
                                           echo "<option selected='selected' value='{$i}'>{$method}</option>";
                                          }
                                          else
                                          {
                                            echo "<option value='{$i}'>{$method}</option>";
                                          }
                                          
                                          $i++;
                                          
                                        }
                                       ?>
                                      </select>
                                      </td>
                                  </tr>
                                  <tr>
                                    <td>من أجل</td>
                                      <td>:&nbsp;<input type="text" class="auto-input" name="reason" value="<?php echo $recipt['reason']; ?>" /></td>
                                  </tr>
                                  <tr>
                                    <td>ملاحظات </td>
                                      <td><p class="text-right"><textarea id="" class="" style="" tabindex="19" cols="20" rows="2" name="notes" value="<?php echo $recipt['notes']; ?>"></textarea></p></td>
                                  </tr>
                           </table>       
                          </div>
                          <div class="save-botton">حفظ</div>
                          </div>
                        </form>
                      </div>  

</div>